home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11855 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: solon.com!not-for-mail
  2. From: The Amorphous Mass <robinson@blue.weeg.uiowa.edu>
  3. Newsgroups: comp.lang.c,comp.lang.c.moderated
  4. Subject: Re: const pointer confusion...
  5. Date: 26 Mar 1996 19:01:38 -0600
  6. Organization: University of Iowa, Iowa City, IA, USA
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4ja41i$pgd@solutions.solon.com>
  10. References: <4j06gm$7oa@solutions.solon.com> <4j41hs$nku@solutions.solon.com> <4j6354$3ge@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12. X-Sender: robinson@red.weeg.uiowa.edu
  13.  
  14. On 25 Mar 1996, Kurt Watzka wrote:
  15.  
  16.  > 
  17.  > The Amorphous Mass <robinson@blue.weeg.uiowa.edu> writes:
  18.  > 
  19.  > >On 23 Mar 1996, Reed R. Mangino wrote:
  20.  > 
  21.  > >  No, p is a pointer to a constant integer. However, you are right that 
  22.  > >*p cannot change, but p can.
  23.  > 
  24.  > >> 2) int *const p;
  25.  > >>     p is a pointer to an integer.  *p can be assigned to, but p can
  26.  > >>     never be made to point to another address in memory, right?
  27.  > 
  28.  > >  This is a syntax error.
  29.  > 
  30.  > Should I complain to my vendor? Should I complain to the vendors of
  31.  > all compilers that accept this code?
  32.  
  33.   No, but you can flame me in two widely-read newsgroups for that post.
  34. I'll complain to the vendor of the compiler in my head.
  35.  
  36.  --James Robinson (robinson@cs.uiowa.edu -or- james-robinson@uiowa.edu)
  37. /*   Indeed, C++ is a bit of an oddball of a language ... given the way that *
  38.  * it requires private parts to be visible.  This increases the strength of  *
  39.  * coupling dramatically...                       -- Dr. Rich Artym          */
  40.